package com.kuang.helloworld.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: helloworld
 * @description:
 * @author: 陈恩涛
 * @create: 2020-10-12 21:30
 **/
//自动装配原理
@RestController
public class HelloController {

    //接口： http://localhost:8080/hello
    @RequestMapping("/hello")
    public String hello(){
        //调用业务，接收前端参数
        return "hello,world!";
    }
}
